package Lib3d.EventListeners;


import Lib3d.MyUtils.Camera;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

/**
 * A mouse listener implementation used by the main application's canvas.
 * 
 * @author Wassim Chegham
 * @version 0.1
 * @category Lib3d.EventListener
 * 
 */
public class MyMouseListener implements MouseMotionListener, MouseListener {

    public void mouseClicked(final MouseEvent e) {}

    public void mouseDragged(final MouseEvent e) {
        Camera.setRotation(e);
    }

    public void mouseEntered(final MouseEvent e) {}

    public void mouseExited(final MouseEvent e) {}

    public void mouseMoved(final MouseEvent e) {
        // Camera.setMouseMoveEvent(e);
    }

    public void mousePressed(final MouseEvent e) {
        Camera.setMousePressedEvent(e);
    }

    public void mouseReleased(final MouseEvent e) {
        // Camera.setMouseReleasedEvent(e);
    }

}
